﻿@using System.Collections
@using NTQOnlineExamFrontend.Models
@{
    IList<BreadcrumItem> breadcrumItems = null;
    if (ViewData.ContainsKey("Breadcrumb"))
    {
        breadcrumItems = (IList<BreadcrumItem>)ViewData["Breadcrumb"];
    }
}


@if (breadcrumItems != null && breadcrumItems.Count > 0)
{
    <ol class="breadcrumb pull-right hidden-xs">
        @foreach (var item in breadcrumItems)
        {
            if (item.Selected)
            {
            <li class='active'>@item.DisplayName</li>
            }
            else
            {
            <li><a href='@item.URL'>@item.DisplayName</a></li>
                
            }

        }
    </ol>
}